package org.csu.sei.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.csu.sei.common.BaseConstant;
import java.time.LocalDateTime;


@Data
@TableName("category")
public class Category implements BaseConstant {
    @TableId(type= IdType.AUTO)
    private Long id;
    private Long parentId;
    private Long titleId;
    private String name;
    private int categoryStatus;//考虑要不要用EnumValue注解
    private int sortOrder;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
